<template>
  <i-frame :src="url"/>
</template>
<script>
import iFrame from "@/components/iFrame/index";
import {doDruid, loginDruid} from "@/api/monitor/druid";

export default {
  name: "Druid",
  components: {iFrame},
  data() {
    return {
      url: ""
      // url: process.env.VUE_APP_BASE_API + "/druid/login.html"
    };
  },
  mounted() {
    doDruid().then(res => {
      loginDruid(res.data).then(res => {
        this.url = process.env.VUE_APP_BASE_API + "/druid/index.html"
      })
    })
  }
};
</script>
